/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.insurance.cis.scos;

/**
 *
 * @author TruongLQ
 */
public class ProductSearchCondition {
    String id, name;
    Integer categoryId;
    String productDesc;

    public ProductSearchCondition(String id, String name, Integer categoryId) {
        this.id = id;
        this.name = name;
        this.categoryId = categoryId;
    }
    
    
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }
    
    public boolean isEmptyCondition() {
        return (id==null||id.isEmpty())
                && (name==null||name.isEmpty())
                && categoryId == null 
                && (productDesc==null ||productDesc.isEmpty());
    }

    public String getProductDesc() {
        return productDesc;
    }

    public void setProductDesc(String productDesc) {
        this.productDesc = productDesc;
    }
    
    
}
